﻿<%@ Page Language="C#" MasterPageFile="/templates/masterpages/default.master" AutoEventWireup="false" CodeBehind="Default.aspx.cs" Inherits="EPiServer.Municipality.Default" %>
<%@ Register TagPrefix="EPiServer" TagName="MainImage" src="~/Templates/Units/MainImage.ascx" %>
<%@ Register TagPrefix="EPiServer" TagName="AdditionalLinks" src="~/Templates/Units/AdditionalLinks.ascx" %>
<%@ Register TagPrefix="EPiServer" TagName="AdditionalText" src="~/Templates/Units/AdditionalText.ascx" %>
<asp:Content runat="server" ContentPlaceHolderID="LogotypeArea">
    <h1><img src="/images/logo.png" alt="<%=Translate("/municipality/templates/default/logo/alt") %>" /></h1>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="PathArea">
    <div id="splash">
        <EPiServer:MainImage runat="server" />
    </div>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
    <EPiServer:Hn runat="server" Heading="h2" PropertyName="Heading" EnableViewState="false" />
    <div class="main">
        <div class="main">
            <div>
                <h3><EPiServer:Property runat="server" PropertyName="PageLink" PageLinkProperty="FirstTeaser" EnableViewState="false" DisplayMissingMessage="false" /></h3>
                <span class="date"><EPiServer:PropertyDate PageLinkProperty="FirstTeaser" runat="server" DateFormat="D" PropertyName="PageStartPublish" EnableViewState="false" DisplayMissingMessage="false" /></span>
                <EPiServer:Image runat="server" PropertyName="TeaserImage" PageLinkProperty="FirstTeaser" EnableViewState="false" DisplayMissingMessage="false" />
                <EPiServer:Property PropertyName="ListIntro" runat="server" PageLinkProperty="FirstTeaser" EnableViewState="false" DisplayMissingMessage="false" />            
            </div>
            <div>
                <h3><EPiServer:Property runat="server" PropertyName="PageLink" PageLinkProperty="SecondTeaser" EnableViewState="false" DisplayMissingMessage="false" /></h3>
                <span class="date"><EPiServer:PropertyDate PageLinkProperty="SecondTeaser" runat="server" DateFormat="D" PropertyName="PageStartPublish" EnableViewState="false" DisplayMissingMessage="false" /></span>
                <EPiServer:Image runat="server" PropertyName="TeaserImage" PageLinkProperty="SecondTeaser" EnableViewState="false" DisplayMissingMessage="false" />
                <EPiServer:Property PropertyName="ListIntro" runat="server" PageLinkProperty="SecondTeaser" EnableViewState="false" DisplayMissingMessage="false" />            
            </div>
        </div>
        <div class="additional">
            <EPiServer:PageList runat="server" ID="NewsList" PageLinkProperty="NewsContainer" SortBy="PageStartPublish" SortDirection="Descending" EnableViewState="false">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <h3><EPiServer:Property runat="server" PropertyName="PageLink" EnableViewState="false" DisplayMissingMessage="false" /></h3>
                        <span class="date"><EPiServer:PropertyDate runat="server" DateFormat="D" PropertyName="PageStartPublish" EnableViewState="false" DisplayMissingMessage="false" /></span>
                    </li> 
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </EPiServer:PageList>
            <EPiServer:Property runat="server" ID="ArchiveLink" PropertyName="PageLink" PageLinkProperty="NewsContainer" Translate="/municipality/templates/default/newslist/linkname" CssClass="archive" />
        </div>
    </div>
    <div class="additional">
        <EPiServer:AdditionalLinks runat="server" />
        <EPiServer:AdditionalText runat="server" />    
    </div>
</asp:Content>


